/*
 * Copyright (c) 2022-present Charles7c Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package top.continew.admin.card.model.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import top.continew.admin.common.enums.GenderEnum;
import top.continew.starter.extension.crud.model.resp.BaseResp;

import java.io.Serial;
import java.time.LocalDateTime;

/**
 * 微信名片访问记录信息
 *
 * @author floyd
 * @since 2024/12/02 15:48
 */
@Data
@Schema(description = "微信名片访问记录信息")
public class BusinessCardVisitorRecordResp extends BaseResp {

    @Serial
    private static final long serialVersionUID = 1L;

    //    /**
    //     * ID
    //     */
    //    @Schema(description = "ID")
    //    private Long recordId;

    /**
     * 微信名片ID
     */
    @Schema(description = "微信名片ID")
    private Long cardId;

    /**
     * 微信名片
     */
    @Schema(description = "微信名片")
    private String cardName;

    /**
     * 访客openId
     */
    @Schema(description = "访客openId")
    private String openId;

    /**
     * 访客昵称（从微信API获取）
     */
    @Schema(description = "昵称")
    private String nickname;

    /**
     * 访客头像
     */
    @Schema(description = "头像")
    private String avatar;

    /**
     * 访客性别（0：未知；1：男；2：女）
     */
    @Schema(description = "性别")
    private GenderEnum gender;

    /**
     * 国家
     */
    @Schema(description = "国家")
    private String country;

    /**
     * 省份
     */
    @Schema(description = "省份")
    private String province;

    /**
     * 城市
     */
    @Schema(description = "城市")
    private String city;

    /**
     * 访问时间
     */
    @Schema(description = "访问时间")
    private LocalDateTime visitorTime;

    /**
     * 停留时间（秒）
     */
    @Schema(description = "停留时间（秒）")
    private Integer duration;

    /**
     * 访问者IP地址
     */
    @Schema(description = "访问者IP地址")
    private String ipAddress;

    /**
     * 设备类型
     */
    @Schema(description = "设备类型")
    private String deviceType;

    /**
     * 操作系统
     */
    @Schema(description = "操作系统")
    private String operatingSystem;

    /**
     * 操作类型（如：click、scroll等）
     */
    @Schema(description = "操作类型")
    private String actions;

    /**
     * 描述
     */
    @Schema(description = "描述")
    private String description;

    /**
     * 修改人
     */
    @Schema(description = "修改人")
    private Long updateUser;

    /**
     * 修改时间
     */
    @Schema(description = "修改时间")
    private LocalDateTime updateTime;
}